﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace DirectoryWinForm
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnCreate_Click(object sender, EventArgs e)
        {
            DirectoryInfo dr = new DirectoryInfo(@"c:\temp");
            dr.Create();
            MessageBox.Show("Folder was created");
        }

        private void btnMove_Click(object sender, EventArgs e)
        {
            Directory.Move("temp", @"c:\newfolder\temp");
        }

        private void btnDelete_Click(object sender, EventArgs e)
        {
            Directory.Delete("temp");
        }
    }
}